<!DOCTYPE html>
<html lang="en">
	<head>
			<meta charset="UTF-8">
			<meta name="viewport" content="width=device-width, initial-scale=1">
			<link href="css/style.css" rel="stylesheet">
		<title>html5新增的布局元素</title>
		{% load static%}
        <link rel="stylesheet" type="text/css" href="{% static 'css/7css.css' %}"/>
	</head>

	<body bgcolor="mediumblue"  background="{% static 'image/t01d61356d326bd0f99.jpg' %}">
        <!----头部-->
        <form  method="POST" id="text" name="text"  action="/login/abcdef/" >
        {% csrf_token %}
        {% include "html2.html" %}
        
                <section>
                        <article>
                        
                        <h3  style="display:inline;">{{lstemp.title}}</h3><br>
                        {% ifequal lstemp.genre '1' %}
                        文章类型：<h4  style="display:inline;">技术类</h4>&nbsp;&nbsp;
                        {% else %}
                        {% ifequal lstemp.genre '2' %}
                        文章类型：<h4  style="display:inline;">生活类</h4>&nbsp;&nbsp;
                        {% else %}
                        {% ifequal lstemp.genre '3'  %}
                        文章类型：<h4  style="display:inline;">其它类</h4>&nbsp;&nbsp;
                        {% endifequal %}
                        {% endifequal %}
                        {% endifequal %}
                        <article style="display:inline;">
                            编号：
                            <input type="text" name="dept" id="dept" value="{{lstemp.empno}}" readonly />
                        </article>
                        发布者：<h4 style="display:inline;">{{lstemp.dept.name}}</h4>
                        {% autoescape off %}
                        <h5>{{lstemp.artile}}</h5>
                        {% endautoescape %}
                        {% for item in ww %}
                        评论者：<h4 style="display:inline;">{{item.observer}}</h4>
                        {% autoescape off %}
                        <h4>评论内容：{{item.comment}}</h4>	&nbsp;&nbsp;&nbsp;&nbsp;</h4>
                        {% endautoescape %}
				        
                        
                        {% endfor %}
                        <article>
                                评论者：
                                <input type="text" name="observer" id="observer" value="{{man.name}}" readonly />
                            </article>
                        <div name="" id="editor">
                                <!-- <input type="hidden" id="hidden_editor" value=""> -->
                                <p></p>
                            </div>
                            <input type="hidden" id="comment" name="comment" value="" />
                        </form>           
                        <input type="submit" form="text" id="btn1" value="评论"/> <!--按钮-->                     
                        <script type="text/javascript" src="{% static "wangEditor-3.1.1/wangEditor-3.1.1/release/wangEditor.min.js" %}"></script>
                        <script type="text/javascript">
                            var E = window.wangEditor
                            var editor = new E('#editor')
                            // 或者 var editor = new E( document.getElementById('editor') )
                            editor.create()
                            document.getElementById('btn1').addEventListener('click', function () {
                                // 读取 html
                                document.getElementById("comment").value=editor.txt.html();
                                // window.location="/appone/article/"+content1;
                            }, false)
            
                        </script>    	
                    </article> 
                     {% include "yewb.html" %}   
                </section>
            
</html>
 